package com.port.eleport.model.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.port.eleport.model.base.IdEntity;
import com.port.eleport.model.plat.TMerchant;

/**
 *  销售平台
 * @author jameschen
 *
 */
@Entity
@Table(name = "biz_sale_platform", schema = "")
@DynamicInsert(true)
@DynamicUpdate(true)
public class TSalePlatform extends IdEntity {
	/**
	 * 平台编号
	 */
	@Column(name="sp_no")
	private String spNo;
	/**
	 * 平台名称
	 */
	@Column(name="sp_name")
	private String spName;
	/**
	 * 与平台sessioninfo
	 */
	@Column(name="session_code")
	private String sessionCode;
	/**
	 * 商家
	 */
	@ManyToOne
	@JoinColumn(name="merchant_id")
	private TMerchant merchant;
	public String getSpNo() {
		return spNo;
	}
	public void setSpNo(String spNo) {
		this.spNo = spNo;
	}
	public String getSpName() {
		return spName;
	}
	public void setSpName(String spName) {
		this.spName = spName;
	}
	public String getSessionCode() {
		return sessionCode;
	}
	public void setSessionCode(String sessionCode) {
		this.sessionCode = sessionCode;
	}
	public TMerchant getMerchant() {
		return merchant;
	}
	public void setMerchant(TMerchant merchant) {
		this.merchant = merchant;
	}
	
	
}
